import React, { Component } from 'react'
import ProductDetail from './detail.jsx'
import ProductEdit from './edit.jsx'
import ProductList from './list.jsx'
import { Switch, Route, Redirect } from 'react-router-dom'
/**
 * 商品管理
 */
export default class index extends Component {
  render() {
    return (
      <Switch>
        <Route path="/goods/product" component={ProductList} exact></Route>
        <Route
          path="/goods/product/detail/:id"
          component={ProductDetail}
        ></Route>
        <Route path="/goods/product/edit/:id" component={ProductEdit}></Route>
        <Redirect to="/goods/product"></Redirect>
      </Switch>
    )
  }
}
